package com.kayt.cyberBar.company.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;

/**
 * The persistent class for the b_company_base_cart database table.
 * 
 */
@Entity
@Table(name="b_company_base_cart")
@NamedQuery(name="BCompanyBaseCart.findAll", query="SELECT b FROM BCompanyBaseCart b")
public class BCompanyBaseCart implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String addr;
	private String addrCode;
	private String code;
	private String createTime;
	private String cyberCode;
	private String cyberName;
	private String price;
	private String statusCode;
	private String updateTime;
	private String account;
	private String remark;
	
	private List<BCompanyBaseCartItem> itemList = new ArrayList<>();

	public BCompanyBaseCart() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}


	@Column(name="ADDR_CODE")
	public String getAddrCode() {
		return this.addrCode;
	}

	public void setAddrCode(String addrCode) {
		this.addrCode = addrCode;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAccount() {
		return account;
	}


	public void setAccount(String account) {
		this.account = account;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Column(name="CYBER_CODE")
	public String getCyberCode() {
		return this.cyberCode;
	}

	public void setCyberCode(String cyberCode) {
		this.cyberCode = cyberCode;
	}

	@Column(name="CYBER_NAME")
	public String getCyberName() {
		return cyberName;
	}


	public void setCyberName(String cyberName) {
		this.cyberName = cyberName;
	}


	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BCompanyBaseCartItem.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "cart")
	public List<BCompanyBaseCartItem> getItemList() {
		return itemList;
	}


	public void setItemList(List<BCompanyBaseCartItem> itemList) {
		this.itemList = itemList;
	}

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	

}